package com.txm.activityMQ;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.util.ErrorHandler;

/**
 * Created by tangxinmao on 2017/5/4.
 */
public class SomeHandler implements ErrorHandler {
    public static Logger logger = LogManager.getLogger(SomeHandler.class.getName());

    public void handleError(Throwable t) {
        logger.error("fashenyichang", t);
    }
}
